From 33c0c1fba8969bc79e3aae22cd83c7c142a4a802 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 28 Jan 2009 13:41:12 +0100 Subject: [PATCH] Don't mess with any events on the root window. This causes all sorts of weirdness with pointer_over_window being the rootwindow and then crashing gdk_window_get_toplevel() later. With this metacity stops crashing madly. --- gdk/gdkwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index b3521504d6..36cb4ef5bb 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -8486,7 +8486,8 @@ _gdk_windowing_got_event (GdkDisplay *display, #endif if (!(is_button_type (event->type) || - is_motion_type (event->type))) + is_motion_type (event->type)) || + GDK_WINDOW_TYPE (event_private) == GDK_WINDOW_ROOT) return; if (event_private->parent != NULL && -- 2.30.2